package com.we823.project.model.repo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.we823.project.model.BaseModelWithDate;
import com.we823.project.model.product.ProductTaskModel;

@Entity
@Table(name="repo_material_stock_out")
public class MaterialStockOutModel extends BaseModelWithDate {
	private static final long serialVersionUID = 1L;

	private String code;

	@Column(name="final_num")
	private float finalNum;

	private int flag=0;

	private String inputer;

	@Column(name="material_code")
	private String materialCode;

	@JSONField(serialzeFeatures=SerializerFeature.DisableCircularReferenceDetect)
	@Transient
	private MaterialModel material;
	

	private String memo;

	@Column(name="need_num")
	private float needNum;

	@Column(name="outgoing_memeber")
	private String outgoingMemeber;

	private String purpose;

	@Column(name="repo_id")
	private int repoId;

	@Column(name="user_id")
	private int userId=0;

	@Transient
	private String materialName;
	@Transient
	private String userName;
	@Transient
	private String stationName;
	@Transient
	private String unit;
	@Transient
	private String model;
	@Transient
	private String planCode;
	@Transient
	private String taskCode;
	
	@JSONField(serialzeFeatures=SerializerFeature.DisableCircularReferenceDetect)
	@Transient
	private ProductTaskModel productTask;
	
	private String finalUnit;//最后描述单位
	
	
	public MaterialStockOutModel() {
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public float getFinalNum() {
		return this.finalNum;
	}

	public void setFinalNum(float finalNum) {
		this.finalNum = finalNum;
	}

	public int getFlag() {
		return this.flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

	public String getInputer() {
		return this.inputer;
	}

	public void setInputer(String inputer) {
		this.inputer = inputer;
	}

	public String getMaterialCode() {
		return this.materialCode;
	}

	public void setMaterialCode(String materialCode) {
		this.materialCode = materialCode;
	}

	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public float getNeedNum() {
		return this.needNum;
	}

	public void setNeedNum(float needNum) {
		this.needNum = needNum;
	}

	public String getOutgoingMemeber() {
		return this.outgoingMemeber;
	}

	public void setOutgoingMemeber(String outgoingMemeber) {
		this.outgoingMemeber = outgoingMemeber;
	}

	public String getPurpose() {
		return this.purpose;
	}

	public void setPurpose(String purpose) {
		this.purpose = purpose;
	}

	public int getRepoId() {
		return this.repoId;
	}

	public void setRepoId(int repoId) {
		this.repoId = repoId;
	}

	public MaterialModel getMaterial() {
		return material;
	}

	public void setMaterial(MaterialModel material) {
		this.material = material;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getMaterialName() {
		return materialName;
	}

	public void setMaterialName(String materialName) {
		this.materialName = materialName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getStationName() {
		return stationName;
	}

	public void setStationName(String stationName) {
		this.stationName = stationName;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getFinalUnit() {
		return finalUnit;
	}

	public void setFinalUnit(String finalUnit) {
		this.finalUnit = finalUnit;
	}

	public String getPlanCode() {
		return planCode;
	}

	public void setPlanCode(String planCode) {
		this.planCode = planCode;
	}

	public String getTaskCode() {
		return taskCode;
	}

	public void setTaskCode(String taskCode) {
		this.taskCode = taskCode;
	}

	public ProductTaskModel getProductTask() {
		return productTask;
	}

	public void setProductTask(ProductTaskModel productTask) {
		this.productTask = productTask;
	}

	
}